﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RN
{
    public class Loader
    {
        public static string FileURL = "";
        public List<Client> clients;

        public void LoadClients()
        {
            if (FileURL != null && FileURL.Length>0){                
                
                clients = new List<Client>();
                string[] lines = System.IO.File.ReadAllLines(Loader.FileURL);
                foreach (string line in lines)
                {
                    string[] l = line.Split('|');
                    clients.Add(new Client(l[0],l[1]));
                }
            }           
        }
    }
}
